//
//  oneSectionCellTableViewCell.m
//  UI_HLJ_Frame
//
//  Created by  毕宏伟 on 15/7/3.
//  Copyright (c) 2015年 毕宏伟. All rights reserved.
//

#import "oneSectionCellTableViewCell.h"

#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height

@implementation oneSectionCellTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.leftImage = [[UIImageView alloc]init];
//        self.leftImage.backgroundColor =[UIColor yellowColor];
        [self.contentView addSubview:self.leftImage];
        [_leftImage release];
        
        self.titleLabel =[[UILabel alloc]init];
//        self.titleLabel.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:self.titleLabel];
        [_titleLabel release];
        
        
        self.guanzhuLabel = [[UILabel alloc]init];
//        self.guanzhuLabel.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:self.guanzhuLabel];
        self.guanzhuLabel.font = [UIFont systemFontOfSize:14];
        [_guanzhuLabel release];
        
        
        self.zuopinLabel = [[UILabel alloc]init];
//        self.zuopinLabel.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:self.zuopinLabel];
        self.zuopinLabel.font = [UIFont systemFontOfSize:14];
        [_zuopinLabel release];
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.leftImage.frame = CGRectMake(10, 10, WIDTH / 2.5, 80);
    
    self.titleLabel.frame = CGRectMake(WIDTH / 2.2, 10, 180, 30);
    
    self.guanzhuLabel.frame = CGRectMake(WIDTH / 2.2, 60, 80, 20);
    
    self.zuopinLabel.frame = CGRectMake(WIDTH / 1.39, 60, 80, 20);
    
    
    
    
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
